from django.db import models

# Create your models here.
class address(models.Model):
    province=models.CharField(max_length=100,verbose_name='省份')
    city=models.CharField(max_length=100,verbose_name='城市')
    district=models.CharField(max_length=100,verbose_name='区')
    user=models.ForeignKey('user.UserProfile',on_delete=models.CASCADE,verbose_name='用户')
    name=models.CharField(max_length=100,verbose_name='姓名')
    telephone=models.CharField(max_length=11,verbose_name='电话')
    default=models.BooleanField(default=False,verbose_name='默认地址')
    address=models.CharField(max_length=200,verbose_name='详细地址',)

